public class FacadePattern {
    public static void main(String[] args) {
        Face face=new Face();
        face.execute();
        face.stop();
    }
}

class Face{
    Sub1 sub1=new Sub1();
    Sub2 sub2=new Sub2();
    Sub3 sub3=new Sub3();
    void execute(){
        sub1.execute();
        sub2.execute();
        sub3.execute();
    }
    void stop(){
        sub1.stop();
        sub2.stop();
        sub3.stop();
    }

}
class Sub1{
    void execute(){
        System.out.println("sub1");
    }
    void stop(){
        System.out.println("stop1");
    }
}
class Sub2{
    void execute(){
        System.out.println("sub2");
    }
    void stop(){
        System.out.println("stop2");
    }
}
class Sub3{
    void execute(){
        System.out.println("sub3");
    }
    void stop(){
        System.out.println("stop3");
    }
}
